package ar.com.nexoweb.actualidadbasquet;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import ar.com.nexoweb.actualidadbasquet.entities.ListadoNoticias;


public class MenuPrincipalActivity extends Activity {

	Button btnBoletines;
	Button btnInfoliga;
	Button btnSuperbasquet;
	Button btnBasquetrosario;
	Button btnAcerca;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu_principal);
		
		btnBoletines = (Button) findViewById(R.id.btnBoletines);
		btnInfoliga = (Button) findViewById(R.id.btnInfoliga);
		btnSuperbasquet = (Button) findViewById(R.id.btnSuperbasquet);
		btnBasquetrosario = (Button) findViewById(R.id.btnBasquetrosario);
		btnAcerca = (Button) findViewById(R.id.btnAcerca);
		
		btnBoletines.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(v.getContext(), ListadoBoletinesActivity.class);
				startActivity(intent);
			}
		});
		
		btnInfoliga.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(v.getContext(), ListadoInfoligaActivity.class);
				startActivity(intent);
			}
		});
		
		btnSuperbasquet.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(v.getContext(), ListadoSuperbasquetActivity.class);
				startActivity(intent);
			}
		});
		
		btnBasquetrosario.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(v.getContext(), ListadoBasquetrosarioActivity.class);
				startActivity(intent);
				
			}
		});
		
		btnAcerca.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(v.getContext(), ListadoNoticias.class);
				intent.putExtra("titulo", "Feed de prueba");
				intent.putExtra("url", "http://www.nexoweb.com.ar/feed/");
				intent.putExtra("fondo", R.drawable.fondo_arobb);
				startActivity(intent);
				
			}
		});

	}

//	@Override
//	public boolean onCreateOptionsMenu(Menu menu) {
//		// Inflate the menu; this adds items to the action bar if it is present.
//		getMenuInflater().inflate(R.menu.menu_principal, menu);
//		return true;
//	}

}
